package com.itheima.javabean;

//实体类：
//  1.成员变量全部私有，并提供public修饰的getter和setter方法
//  2.要求提供1个无参构造器，有参构造器可选
public class Cat {

    private String name;
    private int age;
    private String color;

    public Cat() {

    }

    //可选，但有有参的话无参的就必须写出来
    public Cat(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
